﻿#include "Queue.h"

void test()
{
	Queue queue;
	QueueInit(&queue);

	QueuePush(&queue, 1);
	QueuePush(&queue, 2);
	QueuePush(&queue, 3);
	QueuePush(&queue, 4);
	QueuePush(&queue, 5);

	while (!QueueEmpty(&queue))
	{
		printf("size: %d, front: %d, tail: %d\n", QueueSize(&queue), QueueFront(&queue), QueueBack(&queue));
		QueuePop(&queue);
	}
	QueueDestory(&queue);
}

int main()
{
	test();
	return 0;
}